<!--- SUI模板 on 2017/3/30 -->
<script ng-init="initCss()"></script>
<div class="page">
    <header class="bar bar-nav">
        <a class="icon icon-left pull-left button-nav" href="javascript:history.back(-1);"></a>
        <h1 class="title">运行记录</h1>
    </header>
    <div class="content" ng-init="">
        <div class="content-block">
            <p>设备名：{{thisDevice.deviceName}}</p>
            <p>运行记录
                <span ng-if="thisDevice.runningRecords.length==0" style="color:#bbbbbb;">（当前设备运行记录为空）</span>
            </p>
            <ul>
                <li ng-repeat="record in thisDevice.runningRecords track by record.recordId">
                    [{{record.recordTime|date:'yyyy-MM-dd hh:mm:ss'}}]<br>
                    运行时长（h）:{{record.recordChangedDuration}}
                </li>
            </ul>
            <p>维修记录
                <span ng-if="thisDevice.repairRecords.length==0" style="color:#bbbbbb;">（当前设备维修记录为空）</span>
            </p>
            <ul>
                <li ng-repeat="record in thisDevice.repairRecords track by record.recordId">
                    [{{record.recordTime|date:'yyyy-MM-dd hh:mm:ss'}}]<br>
                    设备维修前总运行时长（h）:{{record.runningDurationBeforeRepair}}<br>
                    维修金额（￥）:{{record.recordConsumedMoney}}<br>
                    维修用时（h）:{{record.recordConsumedTimeDuration}}<br>
                    维修零件清单:
                    <ul>
                        <li ng-repeat="part in record.recordConsumedParts">
                            零件名：{{part.partsName}}<br>
                            零件数量：{{part.partsNumber}}
                        </li>
                    </ul>
                </li>
            </ul>
        </div>
    </div>
</div>
<div ng-init="suiMobileInit()"></div>